import request from '@/utils/request'

/**
 * @description: 获取客户类别清单
 * @param {*} params
 * @return {*}
 */
export function getCustomerClass(params) {
  return request({
    url: '/customer/class/list',
    params
  })
}

/**
 * @description: 新增客户类别
 * @param {*} data
 * @return {*}
 */
export function addCustomerClassItem(data) {
  return request({
    url: '/customer/class/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新客户类别
 * @param {*} data
 * @return {*}
 */
export function updateCustomerClassItem(data) {
  return request({
    url: '/customer/class/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除客户类别
 * @param {*} data
 * @return {*}
 */
export function deleteCustomerClassItem(data) {
  return request({
    url: '/customer/class/delete',
    method: 'post',
    data
  })
}
